//
//  NSString+wtfssd.h
//  WhereToEat
//
//  Created by WTFSSD on 2017/6/2.
//  Copyright © 2017年 WTFSSD. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>
@interface NSString (wtfssd)


#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdocumentation"

/**
 * 拼接字符串
 * @param  aNSObject
 * @return NSString*
 */
-(NSString*(^)(id obj))add;


/**
 *  字符串相等
 * @param  aNSObject
 * @return BOOL
 */
-(BOOL(^)(id obj))eq;


/**
 *   字符串包含
 *   @param 参数1 被包含的字符串 参数2 区分大小写
 *   @return bool
 */
-(BOOL(^)(NSString * ,BOOL ))contain;

/**
 *  从filed1=value1&filed2=value2这类的字符获取参数
 *  @return NSDictionary* 返回以filed1...为key的字典
 */
-(NSDictionary*(^)())getQuery;


///大写
-(NSString*(^)(void))upcase;


///小写
-(NSString*(^)(void))lowercase;

///转化成url
-(NSURL*(^)(void))toUrl;


/**
 * 计算字符串站的UI大小
 *@param UIFont* 字符串字体
 *@return CGSize
 */
-(CGSize(^)(UIFont* font))sizeOfFont;





#pragma clang diagnostic pop



/**
 获取字符串首字母大写
 
 @return NSString*
 */
- (NSString *)firstCharactor;
//-(NSString*(^)(NSString * str))adds;
//
//-(NSString*(^)(char c))addc;
//
//-(NSString*(^)(NSArray * arr))adda;
//
//-(NSString*(^)(NSDictionary * dict))addd;
//
//-(NSString*(^)(NSNumber * n))addn;

@end
